﻿using EquipmentAlarmSystem.Service.Models.Enum;

namespace EquipmentAlarmSystem.Service.Models;

/// <summary>
/// 配置文件
/// </summary>
public class Configure
{
    /// <summary>
    /// 采样间隔
    /// </summary>
    public int SamplingInterval { get; set; }

    /// <summary>
    /// 推送间隔
    /// </summary>
    public int PushInterval { get; set; }

    /// <summary>
    /// 启用推送
    /// </summary>
    public bool EnablePush { get; set; }

    /// <summary>
    /// 签名
    /// </summary>
    public string Autograph { get; set; }

    /// <summary>
    /// 心跳
    /// </summary>
    public string Heartbeat { get; set; }

    /// <summary>
    /// 报警启用时间限制
    /// </summary>
    public bool EnableAlarmPush { get; set; }

    /// <summary>
    /// 启用报警推送时间
    /// </summary>
    public int EnableAlarmPushTime { get; set; }

    /// <summary>
    /// 禁用报警推送时间
    /// </summary>
    public int DisableAlarmPushTime { get; set; }

    /// <summary>
    /// 服务端类型
    /// </summary>
    public ServerType ServiceType { get; set; }

    /// <summary>
    /// 服务地址
    /// </summary>
    public string ServiceAddress { get; set; }

    /// <summary>
    /// 联系人
    /// </summary>
    public List<Contact> Contacts { get; set; }
    /// <summary>
    /// 最后保存时间
    /// </summary>
    public DateTime LastSaveTime { get; set; }
}
